package com.yuyou.activity.util.util;

import org.apache.commons.lang3.StringUtils;

public class PhoneUtil {
	
	public static String tran4star(String phone) {
		String res=StringUtils.EMPTY;
		if(!StringUtils.isEmpty(phone)&&(phone.length()>=11)){
    		String phoneNumber = phone.substring(0, 3) + "****" + phone.substring(7, phone.length());
    		res=phoneNumber;
		}else{
			res="***********";
		}
		return res;
	}
	
}
